<template>
    <p>子元素</p>
    <slot>这是子组建默认的内容</slot>
    <p>{{ name }}</p>
</template>
<script>
export default{
    data(){
        return {
            name:"Tom"
        }
    }
}
</script>